package com.zhixiang.xaec.entity.system;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.cfg.Comment;

@Entity
@Table(name="sys_app_dicType")
@Comment("字典类型表")
public class DicType
{
    @Transient
    public static final short ISSYS = 1;
    @Transient
    public static final short ISNOTSYS = 0;
    
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long id;
    
    @Comment("类型")
    private String dic;
    
    @Comment("类型描述")
    private String dicDesc;
    
    @Comment("类型编号")
    private String dicNo;
    
    @Comment("是否用户可见：1不可见，0可见")
    private short isSys = ISNOTSYS;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getDic()
    {
        return dic;
    }

    public void setDic(String dic)
    {
        this.dic = dic;
    }

    public String getDicDesc()
    {
        return dicDesc;
    }

    public void setDicDesc(String dicDesc)
    {
        this.dicDesc = dicDesc;
    }

    public short getIsSys()
    {
        return isSys;
    }

    public void setIsSys(short isSys)
    {
        this.isSys = isSys;
    }

    @Override
    public String toString()
    {
        return "DicType [id=" + id + ", dic=" + dic + ", dicDesc=" + dicDesc + ", isSys=" + isSys
               + "]";
    }

    public String getDicNo()
    {
        return dicNo;
    }

    public void setDicNo(String dicNo)
    {
        this.dicNo = dicNo;
    } 
    
    
}
